home *** CD-ROM | disk | FTP | other *** search
- property ancestor, pCursor
- global gDBTextVarList
-
- on new me, buttonName, castName, xSprite, xLoc, descendant
- ancestor = new(script("generic button"), buttonName, castName, xSprite, xLoc, me)
- MyObj = getaProp(gDBTextVarList, GetObjProp())
- pCursor = GetPointingCursor(MyObj)
- return me
- end
-
- on performFunction me
- tell the stage
- playSFX(5)
- end tell
- TextCopy()
- return me
- end
-
- on enable me
- enable(ancestor)
- set the cursor of sprite the pChannel of me to pCursor
- end
-
- on disable me
- disable(ancestor)
- set the cursor of sprite the pChannel of me to -1
- end
-
- on buttonLoc me, size
- set the loc of sprite the pChannel of me to getAt([me.pStageLoc, point(517, 17)], size)
- disable(me)
- return me
- end
-